/* 各个页面相同的样式表：头、尾部 */
/* 版心居中 */
.wrapper {
  width: 1240px;
  margin: 0 auto;
}

/* 快捷导航 */
.navigator {
  height: 52px;
  background-color: #333;
}

.navigator .wrapper {
  height: 52px;
}

.navigator .wrapper ul {
  float: right;
  line-height: 52px;
}

.navigator .wrapper li {
  float: left;
}

.navigator .wrapper li a {
  padding: 0 16px;
  font-size: 14px;
  color: #dcdcdc;
  border-right: 1px solid #666666;
}

.navigator .wrapper li:last-child a {
  border-right: none;
}

.navigator .wrapper a span {
  display: inline-block;
  margin-right: 8px;
  width: 13px;
  height: 16px;
  background-image: url(../images/sprites.png);
  background-position: -160px -70px;
  vertical-align: middle;
}

/* 头部 */
.header {
  margin: 30px auto;
  height: 70px;
}

.header .logo {
  float: left;
  margin-right: 40px;
  width: 207px;
  height: 70px;
}

/* 针对SEO优化的做法 */
.header .logo .h1 {
  width: 207px;
  height: 70px;
}

.header .logo a {
  display: block;
  width: 207px;
  height: 70px;
  background-image: url(../images/logo.png);
  background-size: contain;
  /* 让h1里面的字看不见 */
  font-size: 0;
}

.header .nav li {
  float: left;
  margin-right: 48px;
  line-height: 70px;
}

.header .nav li a {
  padding-bottom: 7px;
}

.header .nav li a:hover {
  color: #27ba9b;
  border-bottom: 1px solid #27ba9b;
}

.header .search {
  position: relative;
  float: left;
  margin-top: 24px;
  margin-left: 34px;
  padding-left: 31px;
  width: 172px;
  height: 30px;
  border-bottom: 2px solid #e7e7e7;
}

.header .search input {
  width: 150px;
  height: 28px;
}

.header .search input::placeholder {
  font-size: 14px;
  color: #ccc;
}

.header .search span {
  /* 绝对定位，盒子会具备行内块特点，所以不用display:inline-block也可以 */
  position: absolute;
  /* display: inline-block; */
  width: 18px;
  height: 18px;
  left: -2px;
  top: 0;
  background-image: url(../images/sprites.png);
  background-position: -79px -69px;
}

.header .cart {
  position: relative;
  float: left;
  margin-top: 28px;
  margin-left: 15px;
  width: 23px;
  height: 23px;
  background-image: url(../images/sprites.png);
  background-position: -119px -69px;
}

.header .cart span {
  /* 绝对定位，盒子会具备行内块特点，所以不用display:inline-block也可以 */
  position: absolute;
  /* display: inline-block; */
  width: 20px;
  height: 15px;
  background-color: #e26237;
	border-radius: 8px;
  right: -11px;
  top: -6px;
  text-align: center;
  line-height: 15px;
  font-size: 13px;
  color: #fff;
}




/* 版权区域 */
.footer {
  height: 342px;
  background-color: #333;
}

.footer .wrapper {
  width: 1393px;
}

.footer .wrapper .top {
  height: 175px;
  border-bottom: 3px solid #434343;
}


.footer .wrapper .top ul {
  margin-left: 135px;
}

.footer .wrapper .top li {
  position: relative;
  float: left;
  margin-top: 58px;
  margin-right: 300px;
  width: 195px;
  height: 58px;
  line-height: 58px;
}

.footer .wrapper .top li:last-child {
  margin-right: 0;
}

.footer .wrapper .top li::before {
  position: absolute;
  /* display: inline-block; */
  content: '';
  width: 58px;
  height: 58px;
  background-image: url(../images/sprites.png);
  vertical-align: middle;
  left: 0;
  top: 0;
}

/* 第二个li里面的before添加背景图位置属性 */
.footer .wrapper .top li:nth-child(2)::before {
  background-position: -64px 0;
}

/* 第三个li里面的before添加背景图位置属性 */
.footer .wrapper .top li:nth-child(3)::before {
  background-position: -130px 0;
}

.footer .wrapper .top span {
  margin-left: 77px;
  font-size: 28px;
  color: #fff;
}

.footer .wrapper .bottom {
  margin-top: 41px;
}

.footer .wrapper .bottom p {
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

.footer .wrapper .bottom a {
  font-size: 14px;
  color: #999;
}